#include <iostream>
using namespace std;
int main()
{
	int i = 3;
	int *iptr = &i;
	int **iptrptr = &iptr; //iptr is variable,can get his address.
	cout << "Address of var i= " << iptr <<endl;//output iptr storage contents,ji i in its address in memory.
	cout << "Data of var i= " << *iptr << endl;//output iptr to a variable, ji the value of i.
	cout << "Address of pointer= " << iptrptr << endl;//output iptr in its address in memory.
	cout << "Address of var i= " << *iptrptr << endl;
	*iptr = 2 + *iptr;
	cout << "Data of var i= " << *iptr << endl;
	return 0;
}
